﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Project.aspx.cs"
    Inherits="RCREEE.Web.project" Culture="auto" meta:resourcekey="PageResource1"
    UICulture="auto" EnableEventValidation="false" %>

<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="dialogContent" style="font-size: small">
        <p>
            Are you sure you want to delete?</p>
    </div>
    <asp:UpdateProgress ID="Up1" runat="Server" AssociatedUpdatePanelID="PageUpdatepanel">
        <ProgressTemplate>
            <div class="progressBackgroundFilter">
            </div>
            <div class="processMessage">
                Loading...<br />
                <br />
                <img alt="Loading..." src="Images/Loading.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="PageUpdatepanel" runat="server">
        <ContentTemplate>
            <br />
            <asp:Label ID="Label8" runat="server" Style="text-align: center" meta:resourcekey="ChooseCountry_Main"></asp:Label>
            :
            <asp:DropDownList ID="CountriesDD" runat="server" AutoPostBack="True" Style="z-index: 1;
                height: 28px; width: 300px;" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"
                meta:resourcekey="CountriesDDResource1" Width="100%">
            </asp:DropDownList>
            <br />
            <br />
            <asp:Label ID="CheckEntityLabel" runat="server" Font-Bold="True" ForeColor="#CC0000"
                Style="z-index: 1; left: 392px; top: 121px; width: 501px; text-align: center;"
                meta:resourcekey="CheckEntityLabelResource1"></asp:Label>
            <asp:Label ID="NoData" runat="server" Font-Bold="True" ForeColor="#CC0000" Style="text-align: center"
                meta:resourcekey="NoDataResource1"></asp:Label>
            <br />
            <br />
            <asp:MultiView ID="MultiView1" runat="server">
                <asp:View ID="ProjectCountry" runat="server">
                    <asp:UpdateProgress ID="UpdateProgress1" runat="Server" AssociatedUpdatePanelID="MasterVeiwUpdatepanel">
                        <ProgressTemplate>
                            <div class="progressBackgroundFilter">
                            </div>
                            <div class="processMessage">
                                Loading...<br />
                                <br />
                                <img alt="Loading..." src="Images/Loading.gif" />
                            </div>
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <asp:UpdatePanel ID="MasterVeiwUpdatepanel" runat="server">
                        <ContentTemplate>
                            <asp:GridView ID="MasterVeiw" runat="server" DataKeyNames="ProjectId" Width="100%"
                                DataSourceID="MasterGridDataSource" AutoGenerateColumns="False" CellPadding="4"
                                EnableModelValidation="True" ForeColor="#333333" GridLines="None" AllowPaging="True"
                                PageSize="5" meta:resourcekey="MasterVeiwResource1" OnSelectedIndexChanged="MasterVeiw_SelectedIndexChanged">
                                <AlternatingRowStyle BackColor="White" />
                                <Columns>
                                    <asp:BoundField DataField="ProjectId" HeaderText="ProjectId" Visible="False" meta:resourcekey="BoundFieldResource1" />
                                    <asp:ButtonField CommandName="Select" DataTextField="Name" HeaderText="Project Name"
                                        Text="Project Name" meta:resourcekey="ButtonFieldResource1">
                                        <ItemStyle ForeColor="Blue" Width="50%" />
                                    </asp:ButtonField>
                                    <asp:BoundField DataField="ProjectType" HeaderText="Project Type" meta:resourcekey="BoundFieldResource2">
                                        <ItemStyle Width="30%" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="Place" DataField="Place" meta:resourcekey="BoundFieldResource3">
                                        <ItemStyle Width="30%" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="Operation Year" DataField="OperationYear" meta:resourcekey="BoundFieldResource4">
                                        <ItemStyle Width="20%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="ExecutingAgency" HeaderText="Executing Agency" meta:resourcekey="BoundFieldResource5">
                                        <ItemStyle Width="30%" />
                                    </asp:BoundField>
                                </Columns>
                                <FooterStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#CCCCCC" ForeColor="#990000" HorizontalAlign="Center" />
                                <RowStyle BackColor="#EAEAEA" ForeColor="#333333" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#CCCCCC" Font-Bold="True" ForeColor="#990000" />
                            </asp:GridView>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="DetailsVeiw" EventName="ModeChanged" />
                            <asp:PostBackTrigger ControlID="Button1" />
                        </Triggers>
                    </asp:UpdatePanel>
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Print" meta:resourcekey="Button1Resource1" />
                    <br />
                    <table class="style1">
                        <tr>
                            <td class="style2">
                                <asp:Label ID="Language" runat="server" Text="Select your Language:" meta:resourcekey="LanguageResource1"
                                    Visible="False"></asp:Label>
                            </td>
                            <td class="style4">
                                <asp:DropDownList ID="LanguageCodeDDl" runat="server" AutoPostBack="True" meta:resourcekey="LanguageCodeDDlResource1"
                                    Visible="False" OnSelectedIndexChanged="LanguageCodeDDl_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                            <td>
                                <asp:LinkButton ID="AddNewLB" runat="server" meta:resourcekey="AddNewLBResource1"
                                    OnClick="AddNewLB_Click1" Style="width: 80px;" Text="Add New">
                                </asp:LinkButton>
                                <br />
                                <%--<asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">ExportToExcel</asp:LinkButton>--%>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <asp:UpdateProgress ID="UpdateProgress2" runat="Server" AssociatedUpdatePanelID="UpdatePanel5">
                        <ProgressTemplate>
                            <div class="progressBackgroundFilter">
                            </div>
                            <div class="processMessage">
                                Loading...<br />
                                <br />
                                <img alt="Loading..." src="Images/Loading.gif" />
                            </div>
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <asp:UpdatePanel ID="UpdatePanel5" runat="server">
                        <ContentTemplate>
                            <asp:FormView ID="DetailsVeiw" runat="server" CellPadding="4" DataSourceID="FormVeiwDataSource"
                                DataKeyNames="ProjectId,LanguageCode" EnableModelValidation="True" ForeColor="#333333"
                                OnDataBound="DetailsVeiw_DataBound" OnItemInserted="DetailsVeiw_ItemInserted"
                                Width="563px" OnItemInserting="DetailsVeiw_ItemInserting" OnItemUpdating="DetailsVeiw_ItemUpdating"
                                meta:resourcekey="DetailsVeiwResource1" OnModeChanging="DetailsVeiw_ModeChanging"
                                OnItemDeleted="DetailsVeiw_ItemDeleted" OnItemUpdated="DetailsVeiw_ItemUpdated">
                                <FooterStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                <InsertItemTemplate>
                                    <table class="style1">
                                        <tr>
                                            <td class="style21">
                                                <asp:Label ID="InsertNamelb" runat="server" meta:resourcekey="InsertNamelbResource1"
                                                    Text="Name" CssClass="style18" Style="color: #000000"></asp:Label>
                                            </td>
                                            <td class="style30">
                                                <asp:TextBox ID="Name" runat="server" Text='<%# Bind("Name") %>' meta:resourcekey="NameResource2"
                                                    Width="200px">
                                                </asp:TextBox>
                                                <asp:RequiredFieldValidator ID="vldName" runat="server" ControlToValidate="Name"
                                                    ErrorMessage="Project name" meta:resourcekey="vldNameEditResource1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style21">
                                                <asp:Label ID="InsertPlacelb" runat="server" meta:resourcekey="InsertPlacelbResource1"
                                                    Text="Place" CssClass="style18" Style="color: #000000"></asp:Label>
                                            </td>
                                            <td class="style30">
                                                <asp:TextBox ID="Place" runat="server" Text='<%# Bind("Place") %>' TextMode="MultiLine"
                                                    meta:resourcekey="PlaceResource2" Width="200px">
                                                </asp:TextBox>
                                            </td>
                                        </tr>
                                        </span></span></span></span>
                                        <tr>
                                            <td class="style21">
                                                <asp:Label ID="InstalledCapcitylb" runat="server" Text="Installed Capacity(MW)" CssClass="style16"
                                                    Style="color: #000000"></asp:Label>
                                            </td>
                                            <td class="style30">
                                                <asp:TextBox ID="InstalledCapacity" runat="server" Text='<%# Bind("InstalledCapacity") %>'
                                                    meta:resourcekey="InstalledCapacityResource2" Width="200px">
                                                </asp:TextBox>
                                                <asp:CompareValidator ID="CompareValidator7" runat="server" ControlToValidate="InstalledCapacity"
                                                    ErrorMessage="Float Number &quot;3.25&quot;" Operator="DataTypeCheck" Type="Double"
                                                    meta:resourcekey="CompareValidator7Resource1">*</asp:CompareValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style22">
                                                <asp:Label ID="Energylb" runat="server" CssClass="style16" Text="Annual Generated Energy (Gega Watt Hour)">
                                                </asp:Label>
                                            </td>
                                            <td class="style30">
                                                <asp:TextBox ID="EnergyProducedPerYearRate" runat="server" Text='<%# Bind("EnergyProducedPerYearRate") %>'
                                                    meta:resourcekey="EnergyProducedPerYearRateResource2" Width="200px">
                                                </asp:TextBox>
                                                <asp:CompareValidator ID="CompareValidator8" runat="server" ControlToValidate="EnergyProducedPerYearRate"
                                                    ErrorMessage="Float Number &quot;3.055&quot;" Operator="DataTypeCheck" Type="Double"
                                                    meta:resourcekey="CompareValidator8Resource1">*</asp:CompareValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style21">
                                                <asp:Label ID="Arealb" runat="server" Text="Solar Heater Area" CssClass="style16"
                                                    Style="color: #000000"></asp:Label>
                                            </td>
                                            <td class="style30">
                                                <asp:TextBox ID="PickupsInstalledArea" runat="server" Text='<%# Bind("PickupsInstalledArea") %>'
                                                    meta:resourcekey="PickupsInstalledAreaResource2" Width="200px">
                                                </asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style21">
                                                <asp:Label ID="Sectorlb" runat="server" Text="Sector" meta:resourcekey="InsertSectorlbResource1"
                                                    CssClass="style18" Style="color: #000000"></asp:Label>
                                            </td>
                                            <td class="style30">
                                                <asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="ProjectSector"
                                                    DataTextField="Name" DataValueField="ID" SelectedValue='<%# Bind("SectorId") %>'
                                                    Width="200px">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style21">
                                                <asp:Label ID="Label5" runat="server" Text="Construction Companies" CssClass="style18"
                                                    Style="color: #000000"></asp:Label>
                                            </td>
                                            <td class="style30">
                                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ConstructionCompanies") %>'
                                                    TextMode="MultiLine" Width="200px">
                                                </asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style9" colspan="2">
                                                <asp:Panel ID="ExecutingAgency" runat="server" CssClass="style6" Font-Bold="True"
                                                    Font-Size="Medium" GroupingText="Owner" meta:resourcekey="ExecutingAgencyResource2"
                                                    Style="color: #000000" Width="553px">
                                                    <br />
                                                    <table class="style1">
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="InsertexecCountrylb" runat="server" meta:resourcekey="InsertexecCountrylbResource1"
                                                                    Text="Country"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddCountry" runat="server" AutoPostBack="True" DataSourceID="CountriesDataSource"
                                                                    DataTextField="Name" DataValueField="ID" Height="30px" meta:resourcekey="ddCountryResource1"
                                                                    Style="margin-bottom: 0px" Width="150px">
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="Label21" runat="server" Text="Category"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddEntity" runat="server" AutoPostBack="True" DataSourceID="EntityDataSource"
                                                                    DataTextField="Name" DataValueField="ID" Height="30px" meta:resourcekey="ddEntityResource1"
                                                                    Width="150px">
                                                                    <asp:ListItem meta:resourcekey="ListItemResource1" Text="Type1" Value="5">
                                                                    </asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <asp:Label ID="Label19" runat="server" Text="Owner"></asp:Label>
                                                    :
                                                    <asp:UpdateProgress ID="UpdateProgress2" runat="Server" AssociatedUpdatePanelID="UpdatePanel2">
                                                        <progresstemplate>
                                                            <div class="progressBackgroundFilter">
                                                            </div>
                                                            <div class="processMessage">
                                                                Loading...<br />
                                                                <br />
                                                                <img alt="Loading..." src="Images/Loading.gif" />
                                                            </div>
                                                        </progresstemplate>
                                                    </asp:UpdateProgress>
                                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                        <contenttemplate>
                                                            <asp:DropDownList ID="ddExecutingAgencyInsert" runat="server" AutoPostBack="True"
                                                                DataSourceID="ContactDataSource" DataTextField="Name" DataValueField="ID" Height="28px"
                                                                meta:resourcekey="ddExecutingAgencyInsertResource1" Width="200px">
                                                            </asp:DropDownList>
                                                        </contenttemplate>
                                                        <triggers>
                                                            <asp:AsyncPostBackTrigger ControlID="ddCountry" EventName="SelectedIndexChanged" />
                                                            <asp:AsyncPostBackTrigger ControlID="ddEntity" EventName="SelectedIndexChanged" />
                                                        </triggers>
                                                    </asp:UpdatePanel>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style21">
                                                <asp:Label ID="Label11" runat="server" CssClass="style16" Style="color: #000000"
                                                    Text=" Year of starting Operation"></asp:Label>
                                            </td>
                                            <td class="style30">
                                                <asp:TextBox ID="OperationYear" runat="server" meta:resourcekey="OperationYearResource2"
                                                    Text='<%# Bind("OperationYear") %>' Width="200px">
                                                </asp:TextBox>
                                                <asp:CompareValidator ID="CompareValidator9" runat="server" ControlToValidate="OperationYear"
                                                    ErrorMessage="Year &quot;1995&quot;" meta:resourcekey="CompareValidator9Resource1"
                                                    Operator="DataTypeCheck" Type="Integer">*</asp:CompareValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style21">
                                                <asp:Label ID="InsertCountrylb" runat="server" Text="Country" meta:resourcekey="InsertCountrylbResource1"
                                                    CssClass="style18" Style="color: #000000"></asp:Label>
                                            </td>
                                            <td class="style30">
                                                <asp:DropDownList ID="ddCoutryProject" runat="server" SelectedValue='<%# Bind("CountryId") %>'
                                                    DataSourceID="CountriesDataSource" DataTextField="Name" DataValueField="ID" meta:resourcekey="ddCoutryProjectResource1"
                                                    Width="200px">
                                                </asp:DropDownList>
                                                <asp:CompareValidator ID="CompareValidator10" runat="server" ControlToValidate="ddCoutryProject"
                                                    ErrorMessage="Country" Operator="NotEqual" Type="Integer" ValueToCompare="0">*</asp:CompareValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style21">
                                                <asp:Label ID="Label20" runat="server" Style="color: #000000" Text="Category"></asp:Label>
                                            </td>
                                            <td class="style30">
                                                <asp:DropDownList ID="ddEntityProject" runat="server" DataSourceID="GetProjectEntites"
                                                    DataTextField="Name" DataValueField="ID" meta:resourcekey="ddEntityProjectResource1"
                                                    SelectedValue='<%# Bind("EntityId") %>' Width="200px">
                                                </asp:DropDownList>
                                                <asp:CompareValidator ID="CompareValidator11" runat="server" ControlToValidate="ddEntityProject"
                                                    ErrorMessage="Entity" Operator="NotEqual" Type="Integer" ValueToCompare="0">*</asp:CompareValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style21">
                                                <asp:Label ID="Label4" runat="server" Text="Status" CssClass="style18" Style="color: #000000">
                                                </asp:Label>
                                            </td>
                                            <td class="style30">
                                                <asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="ProjectStatus"
                                                    DataTextField="Name" DataValueField="ID" SelectedValue='<%# Bind("StatusId") %>'
                                                    Width="200px">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style22">
                                                <asp:Label ID="InsertDescriptionlb" runat="server" Text="Description" meta:resourcekey="InsertDescriptionlbResource1">
                                                </asp:Label>
                                            </td>
                                            <td class="style30">
                                                <asp:TextBox ID="Description" runat="server" Text='<%# Bind("Description") %>' meta:resourcekey="DescriptionResource2"
                                                    Width="200px" TextMode="MultiLine">
                                                </asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style9" colspan="2">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        </span></span></span></span>
                                        <tr>
                                            </td>
                                        </tr>
                                        <caption>
                                            <asp:Panel ID="Panel3" runat="server" GroupingText="Project">
                                                <table class="style1">
                                                    <tr>
                                                        <td class="style17">
                                                            <asp:Label ID="Label17" runat="server" Text="Group"></asp:Label>
                                                        </td>
                                                        <td class="style30">
                                                            <asp:DropDownList ID="ProjectGroup" runat="server" AutoPostBack="True" DataSourceID="GetProjectGroup"
                                                                DataTextField="Name" DataValueField="ID" meta:resourcekey="ProjectGroupResource2"
                                                                SelectedValue='<%# Bind("ProjectGroupId") %>' Width="200px">
                                                            </asp:DropDownList>
                                                            <asp:CompareValidator ID="CompareValidator12" runat="server" ControlToValidate="ProjectGroup"
                                                                ErrorMessage="ProjectGroup" Operator="NotEqual" Type="Integer" ValueToCompare="0">*</asp:CompareValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style20" style="font-weight: bold; text-align: left;">
                                                            <asp:Label ID="Label18" runat="server" Text="Type"></asp:Label>
                                                        </td>
                                                        <td class="style30">
                                                            <asp:UpdateProgress ID="UpdateProgress3" runat="Server" AssociatedUpdatePanelID="UpdatePanel3">
                                                                <progresstemplate>
                                                                    <div class="progressBackgroundFilter">
                                                                    </div>
                                                                    <div class="processMessage">
                                                                        Loading...<br />
                                                                        <br />
                                                                        <img alt="Loading..." src="Images/Loading.gif" />
                                                                    </div>
                                                                </progresstemplate>
                                                            </asp:UpdateProgress>
                                                            <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                                                                <contenttemplate>
                                                                    <asp:DropDownList ID="ddType" runat="server" AutoPostBack="True" DataSourceID="ProjectTypes"
                                                                        DataTextField="Name" DataValueField="ID" Height="31px" meta:resourcekey="ddTypeResource1"
                                                                        Style="margin-bottom: 0px; text-align: right;" Width="200px">
                                                                    </asp:DropDownList>
                                                                    <asp:CompareValidator ID="vldType" runat="server" ControlToValidate="ddType" ErrorMessage="Type"
                                                                        meta:resourcekey="vldCountryEditResource1" Operator="NotEqual" Text="*" Type="Integer"
                                                                        ValueToCompare="0"></asp:CompareValidator>
                                                                </contenttemplate>
                                                                <triggers>
                                                                    <asp:AsyncPostBackTrigger ControlID="ProjectGroup" EventName="SelectedIndexChanged" />
                                                                </triggers>
                                                            </asp:UpdatePanel>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                            <tr>
                                                </td>
                                            </tr>
                                        </caption>
                                    </table>
                                    <asp:ObjectDataSource ID="ContactDataSource" runat="server" DataObjectTypeName="RCREEE.Library.Entities.Project"
                                        DeleteMethod="Deleteproject" InsertMethod="InsertProject" SelectMethod="GetContacts"
                                        TypeName="RCREEE.Library.Entities.Project" UpdateMethod="UpdateProject">
                                        <SelectParameters>
                                            <asp:ControlParameter ControlID="LanguageCodeDDl" DefaultValue="1033" Name="LanguageCode"
                                                PropertyName="SelectedValue" Type="Int32" />
                                            <asp:ControlParameter ControlID="ddCountry" Name="CountryId" PropertyName="SelectedValue"
                                                Type="Int32" />
                                            <asp:ControlParameter ControlID="ddEntity" DefaultValue="" Name="EntityId" PropertyName="SelectedValue"
                                                Type="Int32" />
                                        </SelectParameters>
                                    </asp:ObjectDataSource>
                                    <asp:ObjectDataSource ID="GetProjectEntites" runat="server" DataObjectTypeName="RCREEE.Library.Entities.Project"
                                        DeleteMethod="Deleteproject" InsertMethod="InsertProject" SelectMethod="GetListItemProjectEntity"
                                        TypeName="RCREEE.Library.Entities.Project" UpdateMethod="UpdateProject">
                                        <SelectParameters>
                                            <asp:ControlParameter ControlID="LanguageCodeDDl" Name="LanguageCode" PropertyName="SelectedValue"
                                                Type="Int32" />
                                        </SelectParameters>
                                    </asp:ObjectDataSource>
                                    <asp:ObjectDataSource ID="ProjectTypes" runat="server" SelectMethod="GetListItemProjectTypes"
                                        TypeName="RCREEE.Library.Entities.Project" DataObjectTypeName="RCREEE.Library.Entities.Project"
                                        InsertMethod="InsertProject" UpdateMethod="UpdateProject">
                                        <SelectParameters>
                                            <asp:ControlParameter ControlID="ProjectGroup" Name="ParentId" PropertyName="SelectedValue"
                                                Type="Int32" />
                                            <asp:ControlParameter ControlID="LanguageCodeDDl" Name="LanguageCode" PropertyName="SelectedValue"
                                                Type="Int32" />
                                        </SelectParameters>
                                    </asp:ObjectDataSource>
                                    <asp:HiddenField ID="HiddenType" runat="server" Value='<%# Bind("TypeId") %>' />
                                    <br />
                                    <asp:LinkButton ID="InsertButton" runat="server" CommandName="Insert" Text="Insert"
                                        meta:resourcekey="InsertButtonResource1"></asp:LinkButton>
                                    <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
                                        Text="Cancel" meta:resourcekey="InsertCancelButtonResource1"></asp:LinkButton>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <table class="style1" id="tblMyTable" runat="server">
                                        <tr id="tr0">
                                            <td class="style5" style="font-weight: bold;">
                                                <asp:Label ID="ProjectGroupslb" runat="server" CssClass="style16" meta:resourcekey="ProjectGroupslbResource2"
                                                    Text="Project Groups"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="ProjectGroups" runat="server" CssClass="style16" meta:resourcekey="ProjectGroupsResource1"
                                                    Text='<%# Bind("ProjectGroupName") %>'></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style5" style="font-weight: bold;">
                                                <asp:Label ID="Label16" runat="server" CssClass="style16" Text="Type"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="Type" runat="server" CssClass="style16" meta:resourcekey="TypeResource2"
                                                    Text='<%# Bind("ProjectType") %>'></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style5" style="font-weight: bold;">
                                                <asp:Label ID="Namelabel" runat="server" meta:resourcekey="NamelabelResource1" Text="Name"
                                                    CssClass="style16"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="Name" runat="server" Text='<%# Bind("Name") %>' meta:resourcekey="NameResource3"
                                                    CssClass="style16"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style5" style="font-weight: bold;">
                                                <asp:Label ID="placelabel" runat="server" meta:resourcekey="placelabelResource1"
                                                    Text="Place" CssClass="style16"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="Place" runat="server" Text='<%# Bind("Place") %>' meta:resourcekey="PlaceResource3"
                                                    CssClass="style16"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style5" style="font-weight: bold;">
                                                <asp:Label ID="InstalledCapacitylb" runat="server" CssClass="style16" meta:resourcekey="InstalledCapacitylbResource2"
                                                    Text="Installed Capacity"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="InstalledCapacity" runat="server" CssClass="style16" meta:resourcekey="InstalledCapacityResource3"
                                                    Text='<%# Bind("InstalledCapacity") %>'></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style5" style="font-weight: bold;">
                                                <asp:Label ID="Energylb" runat="server" Text="Annual Generated Energy (Gega Watt Hour)"
                                                    CssClass="style16"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="EnergyProducedPerYearRate" runat="server" Text='<%# Bind("EnergyProducedPerYearRate") %>'
                                                    meta:resourcekey="EnergyProducedPerYearRateResource3" CssClass="style16"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style5" style="font-weight: bold;">
                                                <asp:Label ID="IArealb" runat="server" Text="Solar Heater Area" CssClass="style16"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="PickupsInstalledArea" runat="server" Text='<%# Bind("PickupsInstalledArea") %>'
                                                    meta:resourcekey="PickupsInstalledAreaResource3" CssClass="style16"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style5" style="font-weight: bold;">
                                                <asp:Label ID="ISectorlb" runat="server" meta:resourcekey="SectorlabelResource1"
                                                    Text="Sector" CssClass="style16"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="Sector" runat="server" Text='<%# Bind("SectorName") %>' meta:resourcekey="SectorResource3"
                                                    CssClass="style16"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style5" style="font-weight: bold;">
                                                <asp:Label ID="Label3" runat="server" Text="Construction Companies" CssClass="style16">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="ConstructionCompanies" runat="server" Text='<%# Bind("ConstructionCompanies") %>'
                                                    CssClass="style16"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style5" style="font-weight: bold;">
                                                <asp:Label ID="Label14" runat="server" Text="Owner" CssClass="style16"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# String.Format("~/Contact.aspx?E={0}&R={1}", Eval("EntityId"), Eval("ExecutingAgencyId")) %>'
                                                    Text='<%# Bind("ExecutingAgency") %>' meta:resourcekey="HyperLink1Resource1"
                                                    CssClass="style16">
                                                </asp:HyperLink>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style5" style="font-weight: bold;">
                                                <asp:Label ID="OperationYearlb" runat="server" meta:resourcekey="OperationYearlbResource2"
                                                    Text="Operation Year" CssClass="style16"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="OperationYear" runat="server" Text='<%# Bind("OperationYear") %>'
                                                    meta:resourcekey="OperationYearResource3" CssClass="style16"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style5" style="font-weight: bold;">
                                                <asp:Label ID="Countrylb" runat="server" meta:resourcekey="CountrylbResource2" Text="Country"
                                                    CssClass="style16"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="Country" runat="server" Text='<%# Bind("CountryName") %>' meta:resourcekey="CountryResource2"
                                                    CssClass="style16"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style5">
                                                <asp:Label ID="Label2" runat="server" Style="font-weight: 700;" Text="Status" CssClass="style16">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="StatusName" runat="server" Text='<%# Bind("StatusName") %>' CssClass="style16">
                                                </asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style5" style="font-weight: bold;">
                                                <asp:Label ID="Descriptionlabel" runat="server" meta:resourcekey="DescriptionlabelResource1"
                                                    Text="Description" CssClass="style16"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="Description" runat="server" Text='<%# Bind("Description") %>' meta:resourcekey="DescriptionResource3"
                                                    CssClass="style16"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                    <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit"
                                        Text="Edit" meta:resourcekey="EditButtonResource1" OnClick="EditButton_Click"></asp:LinkButton>
                                    <asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" CommandName="New"
                                        Height="19px" Text="New" meta:resourcekey="NewButtonResource1" OnClick="NewButton_Click"></asp:LinkButton>
                                    <asp:Button ID="DeleteButton" runat="server" CausesValidation="False" CommandName="Delete"
                                        Text="Delete" Width="75px" meta:resourcekey="DeleteButtonResource1" OnClientClick="javascript:return openDeletePopup(this.name);">
                                    </asp:Button>
                                    <br />
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:Panel ID="Panel1" runat="server" Font-Size="Medium" GroupingText="Project">
                                        <table class="style1" id="tableedit" runat="server">
                                            <tr>
                                                <td class="style28">
                                                    <asp:Label ID="Label6" runat="server" Text="Groups"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="ProjectGroup" runat="server" AutoPostBack="True" DataSourceID="GetProjectGroup"
                                                        DataTextField="Name" DataValueField="ID" meta:resourcekey="ProjectGroupResource1"
                                                        SelectedValue='<%# bind("ProjectGroupId") %>' Width="200px">
                                                    </asp:DropDownList>
                                                    <asp:CompareValidator ID="CompareValidator14" runat="server" ControlToValidate="ddCountryProject"
                                                        ErrorMessage="ProjectGroup" Operator="NotEqual" Type="Integer" ValueToCompare="0">*</asp:CompareValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style28">
                                                    <asp:Label ID="Label7" runat="server" Text="Type"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:UpdateProgress ID="UpdateProgress2" runat="Server" AssociatedUpdatePanelID="UpdatePanel4">
                                                        <progresstemplate>
                                                            <div class="progressBackgroundFilter">
                                                            </div>
                                                            <div class="processMessage">
                                                                Loading...<br />
                                                                <br />
                                                                <img alt="Loading..." src="Images/Loading.gif" />
                                                            </div>
                                                        </progresstemplate>
                                                    </asp:UpdateProgress>
                                                    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                                                        <contenttemplate>
                                                            <asp:DropDownList ID="ddTypeEdit" runat="server" DataSourceID="ProjectTypeDataSource"
                                                                DataTextField="Name" DataValueField="ID" meta:resourcekey="ddTypeEditResource1"
                                                                Width="200px">
                                                            </asp:DropDownList>
                                                        </contenttemplate>
                                                        <triggers>
                                                            <asp:AsyncPostBackTrigger ControlID="ProjectGroup" EventName="SelectedIndexChanged" />
                                                        </triggers>
                                                    </asp:UpdatePanel>
                                                    <asp:CompareValidator ID="CompareValidator15" runat="server" ControlToValidate="ddTypeEdit"
                                                        ErrorMessage="Type" Operator="NotEqual" Type="Integer" ValueToCompare="0">*</asp:CompareValidator>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                    <br />
                                    <table class="style1">
                                        <tr>
                                            <td class="style13">
                                                <asp:Label ID="EditNamelb" runat="server" meta:resourcekey="EditNamelbResource1"
                                                    Text="Name" CssClass="style16" Width="57px" Style="color: #000000"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="Name" runat="server" meta:resourcekey="NameResource1" Text='<%# Bind("Name") %>'
                                                    Width="200px">
                                                </asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="Name"
                                                    ErrorMessage="Please , Set Name" meta:resourcekey="RequiredFieldValidator4Resource1"
                                                    Text="*">
                                                </asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style13">
                                                <asp:Label ID="EditPlacelb" runat="server" meta:resourcekey="EditPlacelbResource1"
                                                    Text="Place" CssClass="style16" Width="57px" Style="color: #000000"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="Place" runat="server" Text='<%# Bind("Place") %>' TextMode="MultiLine"
                                                    meta:resourcekey="PlaceResource1" Width="200px">
                                                </asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style13">
                                                <asp:Label ID="InstalledCapacitylb" runat="server" CssClass="style16" Text="Installed Capacity(MW)"
                                                    Style="color: #000000"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="InstalledCapacity" runat="server" meta:resourcekey="InstalledCapacityResource1"
                                                    Text='<%# Bind("InstalledCapacity") %>' Width="200px">
                                                </asp:TextBox>
                                                <asp:CompareValidator ID="CompareValidator5" runat="server" ControlToValidate="InstalledCapacity"
                                                    ErrorMessage="Please Enter a flaot Number &quot;3.23&quot;" meta:resourcekey="CompareValidator5Resource1"
                                                    Operator="DataTypeCheck" Text="*" Type="Double">
                                                </asp:CompareValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style13">
                                                <asp:Label ID="Energylb" runat="server" CssClass="style16" Text="Annual Generated Energy (Gega Watt Hour)"
                                                    Style="color: #000000"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="EnergyProducedPerYearRate" runat="server" Text='<%# Bind("EnergyProducedPerYearRate") %>'
                                                    meta:resourcekey="EnergyProducedPerYearRateResource1" Width="200px">
                                                </asp:TextBox>
                                                <asp:CompareValidator ID="CompareValidator6" runat="server" ControlToValidate="EnergyProducedPerYearRate"
                                                    ErrorMessage="Please Enter a flaot Number &quot;3.23&quot;" Operator="DataTypeCheck"
                                                    Type="Double" meta:resourcekey="CompareValidator6Resource1" Text="*">
                                                </asp:CompareValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style13">
                                                <asp:Label ID="Arealb" runat="server" Text="Solar Heater Area" CssClass="style16"
                                                    Style="color: #000000"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="PickupsInstalledArea" runat="server" Text='<%# Bind("PickupsInstalledArea") %>'
                                                    meta:resourcekey="PickupsInstalledAreaResource1" Width="200px">
                                                </asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style13">
                                                <asp:Label ID="Sectorlb" runat="server" meta:resourcekey="SectorlbResource1" Text="Sector"
                                                    CssClass="style16" Style="color: #000000"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="ProjectSector"
                                                    DataTextField="Name" DataValueField="ID" SelectedValue='<%# Bind("SectorId") %>'
                                                    Width="200px">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style11">
                                                <asp:Label ID="Label5" runat="server" Text="Construction Companies" CssClass="style16"
                                                    Style="color: #000000"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ConstructionCompanies") %>'
                                                    TextMode="MultiLine" Width="200px">
                                                </asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style10" colspan="2">
                                                <asp:Panel ID="Owner" runat="server" CssClass="style16" Font-Bold="True" Font-Size="Medium"
                                                    ForeColor="Black" GroupingText="Owner" meta:resourcekey="ExecutingAgencyResource1"
                                                    Style="color: #000000">
                                                    <br />
                                                    <table class="style1">
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="EditExecCountryLb" runat="server" meta:resourcekey="EditExecCountryLbResource1"
                                                                    Text="Country"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddCountryEdit" runat="server" AutoPostBack="True" DataSourceID="CountriesDataSource"
                                                                    DataTextField="Name" DataValueField="ID" Height="24px" meta:resourcekey="ddCountryEditResource1"
                                                                    Style="margin-bottom: 0px" Width="123px">
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="Label21" runat="server" Text="Category"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddEntityEdit" runat="server" AutoPostBack="True" DataSourceID="EntityDataSource"
                                                                    DataTextField="Name" DataValueField="ID" Height="29px" meta:resourcekey="ddEntityEditResource1"
                                                                    Width="123px">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <asp:Label ID="Label12" runat="server" Text="Owner"></asp:Label>
                                                    <asp:UpdateProgress ID="UpdateProgress4" runat="Server" AssociatedUpdatePanelID="EditUpdatePanel">
                                                        <progresstemplate>
                                                            <div class="progressBackgroundFilter">
                                                            </div>
                                                            <div class="processMessage">
                                                                Loading...<br />
                                                                <br />
                                                                <img alt="Loading..." src="Images/Loading.gif" />
                                                            </div>
                                                        </progresstemplate>
                                                    </asp:UpdateProgress>
                                                    <asp:UpdatePanel ID="EditUpdatePanel" runat="server">
                                                        <contenttemplate>
                                                            <asp:DropDownList ID="ddExecutingAgency" runat="server" AutoPostBack="True" DataSourceID="ContactDataSource"
                                                                DataTextField="Name" DataValueField="ID" Height="24px" meta:resourcekey="ddExecutingAgencyResource1"
                                                                Width="235px">
                                                            </asp:DropDownList>
                                                        </contenttemplate>
                                                        <triggers>
                                                            <asp:AsyncPostBackTrigger ControlID="ddCountryEdit" EventName="SelectedIndexChanged" />
                                                            <asp:AsyncPostBackTrigger ControlID="ddEntityEdit" EventName="SelectedIndexChanged" />
                                                        </triggers>
                                                    </asp:UpdatePanel>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style13">
                                                <asp:Label ID="Label11" runat="server" CssClass="style16" Text=" Year of starting Operation"
                                                    Style="color: #000000"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="OperationYear" runat="server" meta:resourcekey="OperationYearResource1"
                                                    Text='<%# Bind("OperationYear") %>' Width="200px">
                                                </asp:TextBox>
                                                <asp:CompareValidator ID="CompareValidator4" runat="server" ControlToValidate="OperationYear"
                                                    ErrorMessage="Year &quot;1995&quot;" meta:resourcekey="CompareValidator4Resource1"
                                                    Operator="DataTypeCheck" Text="*" Type="Integer">
                                                </asp:CompareValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style13">
                                                <asp:Label ID="Label4" runat="server" Text="Status" CssClass="style16" Style="color: #000000">
                                                </asp:Label>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="ProjectStatus"
                                                    DataTextField="Name" DataValueField="ID" SelectedValue='<%# Bind("StatusId") %>'
                                                    Width="200px">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style13">
                                                <asp:Label ID="EditCountrylb" runat="server" meta:resourcekey="EditCountrylbResource1"
                                                    Text="Country" CssClass="style16" Style="color: #000000"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddCountryProject" runat="server" DataSourceID="CountriesDataSource"
                                                    DataTextField="Name" DataValueField="ID" SelectedValue='<%# Bind("CountryId") %>'
                                                    meta:resourcekey="ddCountryProjectResource1" Width="200px">
                                                </asp:DropDownList>
                                                <asp:CompareValidator ID="CompareValidator13" runat="server" ControlToValidate="ddCountryProject"
                                                    ErrorMessage="Country" Operator="NotEqual" Type="Integer" ValueToCompare="0">*</asp:CompareValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style13">
                                                <asp:Label ID="EditDescriptionlb" runat="server" meta:resourcekey="EditDescriptionlbResource1"
                                                    Text="Descritption" CssClass="style16" Style="color: #000000"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="Description" runat="server" Text='<%# Bind("Description") %>' TextMode="MultiLine"
                                                    meta:resourcekey="DescriptionResource1" Width="200px">
                                                </asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style15" colspan="2">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            </td>
                                        </tr>
                                    </table>
                                    <asp:LinkButton ID="UpdateButton" runat="server" CommandName="Update" Text="Update"
                                        meta:resourcekey="UpdateButtonResource1"></asp:LinkButton>
                                    <asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
                                        Text="Cancel" meta:resourcekey="UpdateCancelButtonResource1"></asp:LinkButton>
                                    <br />
                                    <asp:HiddenField ID="ExecutingAgencyId" runat="server" Value='<%# Bind("ExecutingAgencyId") %>'
                                        Visible="False" />
                                    <asp:ObjectDataSource ID="ContactDataSource" runat="server" DataObjectTypeName="RCREEE.Library.Entities.Project"
                                        DeleteMethod="Deleteproject" InsertMethod="InsertProject" SelectMethod="GetContacts"
                                        TypeName="RCREEE.Library.Entities.Project" UpdateMethod="UpdateProject">
                                        <SelectParameters>
                                            <asp:SessionParameter DefaultValue="1033" Name="LanguageCode" SessionField="LanguageCode"
                                                Type="Int32" />
                                            <asp:ControlParameter ControlID="ddCountryEdit" DefaultValue="1" Name="CountryId"
                                                PropertyName="SelectedValue" Type="Int32" />
                                            <asp:ControlParameter ControlID="ddEntityEdit" DefaultValue="4" Name="EntityId" PropertyName="SelectedValue"
                                                Type="Int32" />
                                        </SelectParameters>
                                    </asp:ObjectDataSource>
                                    <asp:ObjectDataSource ID="ProjectTypeDataSource" runat="server" SelectMethod="GetListItemProjectTypes"
                                        TypeName="RCREEE.Library.Entities.Project" DataObjectTypeName="RCREEE.Library.Entities.Project"
                                        InsertMethod="InsertProject">
                                        <SelectParameters>
                                            <asp:ControlParameter ControlID="ProjectGroup" Name="ParentId" PropertyName="SelectedValue"
                                                Type="Int32" />
                                            <asp:ControlParameter ControlID="LanguageCodeDDl" Name="LanguageCode" PropertyName="SelectedValue"
                                                Type="Int32" />
                                        </SelectParameters>
                                    </asp:ObjectDataSource>
                                    <asp:HiddenField ID="ProjectTypeId" runat="server" Value='<%# Bind("TypeId") %>' />
                                    <asp:HiddenField ID="ProjectId" runat="server" Value='<%# Bind("ProjectId") %>' />
                                    <br />
                                </EditItemTemplate>
                                <PagerStyle BackColor="#CCCCCC" ForeColor="#990000" HorizontalAlign="Center" />
                                <RowStyle BackColor="#EAEAEA" ForeColor="#333333" />
                            </asp:FormView>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="LanguageCodeDDl" EventName="SelectedIndexChanged" />
                        </Triggers>
                    </asp:UpdatePanel>
                    <asp:ValidationSummary ID="Validation" runat="server" meta:resourcekey="ValidationResource1" />
                    <asp:ObjectDataSource ID="GetProjectGroup" runat="server" DataObjectTypeName="RCREEE.Library.Entities.Project"
                        DeleteMethod="Deleteproject" InsertMethod="InsertProject" SelectMethod="GetListItemsLookUps"
                        TypeName="RCREEE.Library.Entities.Project" UpdateMethod="UpdateProject">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="LanguageCodeDDl" Name="LanguageCode" PropertyName="SelectedValue"
                                Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                    <asp:ObjectDataSource ID="ProjectStatus" runat="server" DataObjectTypeName="RCREEE.Library.Entities.Project"
                        DeleteMethod="Deleteproject" InsertMethod="InsertProject" SelectMethod="GetListProjectStatus"
                        TypeName="RCREEE.Library.Entities.Project" UpdateMethod="UpdateProject">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="LanguageCodeDDl" Name="LanguageCode" PropertyName="SelectedValue"
                                Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                    <br />
                    <br />
                    <asp:ObjectDataSource ID="ProjectSector" runat="server" DataObjectTypeName="RCREEE.Library.Entities.Project"
                        DeleteMethod="Deleteproject" InsertMethod="InsertProject" SelectMethod="GetListProjectSector"
                        TypeName="RCREEE.Library.Entities.Project" UpdateMethod="UpdateProject">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="LanguageCodeDDl" Name="LanguageCode" PropertyName="SelectedValue"
                                Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                    <asp:ObjectDataSource ID="GetLanguageCode" runat="server" DataObjectTypeName="RCREEE.Library.Entities.Project"
                        DeleteMethod="Deleteproject" InsertMethod="InsertProject" SelectMethod="GetLanguageCode"
                        TypeName="RCREEE.Library.Entities.Project" UpdateMethod="UpdateProject"></asp:ObjectDataSource>
                    <asp:ObjectDataSource ID="GetType" runat="server" DataObjectTypeName="RCREEE.Library.Entities.Lookups"
                        DeleteMethod="DeleteItemLookUps" InsertMethod="InsertItemLookUps" SelectMethod="GetListItemsLookUps"
                        TypeName="RCREEE.Library.Entities.Lookups" UpdateMethod="UpdateItemLookUps">
                        <DeleteParameters>
                            <asp:Parameter Name="ItemId" Type="Int32" />
                            <asp:Parameter Name="LanguageCode" Type="Int32" />
                        </DeleteParameters>
                        <SelectParameters>
                            <asp:SessionParameter Name="LanguageCode" SessionField="LanguageCode" Type="Int32" />
                            <asp:Parameter DefaultValue="2" Name="CategoryID" Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                    <asp:ObjectDataSource ID="MasterGridDataSource" runat="server" SelectMethod="SelectAllprojectByCountry"
                        TypeName="RCREEE.Library.Entities.Project" DataObjectTypeName="RCREEE.Library.Entities.Project"
                        DeleteMethod="Deleteproject" InsertMethod="InsertProject" UpdateMethod="UpdateProject">
                        <SelectParameters>
                            <asp:SessionParameter DefaultValue="" Name="LanguageCode" SessionField="LanguageCode"
                                Type="Int32" />
                            <asp:ControlParameter ControlID="CountriesDD" Name="CountryId" PropertyName="SelectedValue"
                                Type="Int32" DefaultValue="0" />
                            <asp:QueryStringParameter DefaultValue="4" Name="EntityId" QueryStringField="E" Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                    <asp:ObjectDataSource ID="FormVeiwDataSource" runat="server" DataObjectTypeName="RCREEE.Library.Entities.Project"
                        DeleteMethod="Deleteproject" InsertMethod="InsertProject" SelectMethod="SelectprojectbyId"
                        TypeName="RCREEE.Library.Entities.Project" UpdateMethod="UpdateProject">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="LanguageCodeDDl" DefaultValue="" Name="LanguageCode"
                                PropertyName="SelectedValue" Type="Int32" />
                            <asp:ControlParameter ControlID="MasterVeiw" DefaultValue="" Name="ProjectId" PropertyName="SelectedValue"
                                Type="Int32" />
                            <asp:QueryStringParameter Name="Record" QueryStringField="R" Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                    <asp:ObjectDataSource ID="EntityDataSource" runat="server" DataObjectTypeName="RCREEE.Library.Entities.Project"
                        DeleteMethod="Deleteproject" InsertMethod="InsertProject" SelectMethod="GetListExecutingEntity"
                        TypeName="RCREEE.Library.Entities.Project" UpdateMethod="UpdateProject">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="LanguageCodeDDl" Name="LanguageCode" PropertyName="SelectedValue"
                                Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                    <asp:ObjectDataSource ID="CountriesDataSource" runat="server" DataObjectTypeName="RCREEE.Library.Entities.Project"
                        DeleteMethod="Deleteproject" InsertMethod="InsertProject" SelectMethod="GetCountries"
                        TypeName="RCREEE.Library.Entities.Project" UpdateMethod="UpdateProject">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="LanguageCodeDDl" Name="LanguageCode" PropertyName="SelectedValue"
                                Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </asp:View>
                <asp:View ID="AllProject" runat="server">
                    <asp:Repeater ID="rptproject" runat="server" OnItemDataBound="rptproject_ItemDataBound"
                        DataSourceID="RepeaterDataSource">
                        <ItemTemplate>
                            <asp:Label ID="Name" runat="server" Text='<%# Eval("Name") %>' Font-Bold="True" Font-Size="Medium"
                                meta:resourcekey="NameResource4"></asp:Label>
                            <br />
                            <asp:HiddenField ID="hCountryId" runat="server" Value='<%# Bind("Id") %>' />
                            <br />
                            <asp:GridView ID="RepeaterVeiw" runat="server" AutoGenerateColumns="False" Width="565px"
                                CellPadding="4" EnableModelValidation="True" ForeColor="#333333" GridLines="None"
                                AllowPaging="True" PageSize="5" meta:resourcekey="RepeaterVeiwResource1">
                                <AlternatingRowStyle BackColor="White" />
                                <Columns>
                                    <asp:BoundField DataField="ProjectId" HeaderText="ProjectId" Visible="False" meta:resourcekey="BoundFieldResource6" />
                                    <asp:BoundField DataField="Name" HeaderText="Project Name" meta:resourcekey="BoundFieldResource7">
                                        <ItemStyle Width="50%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="ProjectType" HeaderText="Project Type" meta:resourcekey="BoundFieldResource8">
                                        <ItemStyle Width="30%" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="Place" DataField="Place" meta:resourcekey="BoundFieldResource9">
                                        <ItemStyle Width="30%" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="Operation Year" DataField="OperationYear" meta:resourcekey="BoundFieldResource10">
                                        <ItemStyle Width="20%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="ExecutingAgency" HeaderText="Executing Agency" meta:resourcekey="BoundFieldResource11">
                                        <ItemStyle Width="30%" />
                                    </asp:BoundField>
                                </Columns>
                                <FooterStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#CCCCCC" ForeColor="#990000" HorizontalAlign="Center" />
                                <RowStyle BackColor="#EAEAEA" ForeColor="#333333" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#CCCCCC" Font-Bold="True" ForeColor="#990000" />
                            </asp:GridView>
                            <asp:Label ID="Label1" runat="server" Text="No Data For This Country !" Visible="False"></asp:Label>
                            <br />
                        </ItemTemplate>
                    </asp:Repeater>
                    <asp:ObjectDataSource ID="RepeaterDataSource" runat="server" SelectMethod="SelectAllProjectCountries"
                        TypeName="RCREEE.Library.Entities.Project" DataObjectTypeName="RCREEE.Library.Entities.Project"
                        DeleteMethod="Deleteproject" InsertMethod="InsertProject" UpdateMethod="UpdateProject">
                        <SelectParameters>
                            <asp:QueryStringParameter DefaultValue="4" Name="EntityId" QueryStringField="E" Type="Int32" />
                            <asp:SessionParameter Name="LanguageCode" SessionField="LanguageCode" Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </asp:View>
            </asp:MultiView>
        </ContentTemplate>
        <Triggers>
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="head">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 213px;
        }
        .style4
        {
            width: 346px;
        }
        .style5
        {
            width: 297px;
        }
        .style9
        {
            font-weight: bold;
            text-align: left;
        }
        .style10
        {
            font-weight: bold;
        }
        .style11
        {
            font-weight: bold;
            width: 340px;
            height: 40px;
        }
        .style13
        {
            font-weight: bold;
            width: 340px;
        }
        .style15
        {
            font-weight: bold;
            direction: ltr;
        }
        .style17
        {
            font-weight: bold;
            width: 273px;
            text-align: left;
        }
        .style20
        {
            width: 273px;
        }
        .style21
        {
            font-weight: bold;
            width: 305px;
        }
        .style22
        {
            font-weight: bold;
            width: 305px;
            color: #000000;
        }
        .style23
        {
            font-weight: bold;
            width: 274px;
        }
        .style28
        {
            font-weight: bold;
            width: 329px;
        }
        .style30
        {
            text-align: left;
        }
    </style>
    <script type="text/javascript">
        $().ready(function () {
            $('#dialogContent').dialog({
                autoOpen: false,
                modal: true,
                bgiframe: true,
                title: "Confirm Delete",
                width: 300,
                height: 200
            });
        });

        function openDeletePopup(uniqueID) {
            $('#dialogContent').dialog('option', 'buttons',
                {
                    "OK": function () { __doPostBack(uniqueID, ''); $(this).dialog("close"); },
                    "Cancel": function () { $(this).dialog("close"); }
                });

            $('#dialogContent').dialog('open');

            return false;
        }

    </script>
    <div id="header">
        <div id="section">
            <table width="100%">
                <tr>
                    <td width="25%" align="center" valign="middle">
                        <img src="Images/LogoRCREEE_Transparent.png" width="200px" />
                    </td>
                    <td width="50%" align="center">
                        <asp:Label ID="lbl_header_center" runat="server" Text="دليل إمكانيات الدول العربية<br/>في<br />مجالات الطاقة المتجددة و رفع كفاءة إنتاج و إستهلاك الطاقة"
                            Font-Bold="True" Font-Size="X-Large" Style="font-weight: bolder; color: #FFFFFF;
                            font-size: x-large; width: 100%; text-align: center;" meta:resourcekey="lbl_header_centerResource1">
                        </asp:Label>
                    </td>
                    <td width="25%" align="center" valign="middle">
                        <img src="Images/las-logo.png" width="100px" />
                    </td>
                </tr>
            </table>
        </div>
        <ul>
            <li><a href="Default.aspx">Home</a></li>
            <li><a href="Index.aspx">Index</a></li>
            <li><a href="Topics.aspx">Topics</a></li>
            <li><a href="CountrySelector.aspx">Countries</a></li>
            <li><a href="Aboutus.aspx">About Us</a></li>
            <li><a href="contactus.aspx">Contact us</a></li>
        </ul>
    </div>
</asp:Content>
